package com.jx.mlxg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jx.mlxg.entity.Orders;
import com.jx.mlxg.entity.Product;
import com.jx.mlxg.service.ProductService;
import com.jx.mlxg.mapper.ProductMapper;
import com.jx.mlxg.utils.PageResponse;
import it.unimi.dsi.fastutil.Hash;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
* @author Administrator
* @description 针对表【product】的数据库操作Service实现
* @createDate 2025-02-25 21:25:41
*/
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService{

    @Resource
    private ProductMapper productMapper;
    @Override
    public Product getProduct() {
        List<Product> product = productMapper.getProduct();
        Product product1 = new Product();
        List list = new ArrayList();
        list.add(1);
        list.add(100);

        product1.setProducts(product);
        product1.setCountRange(list);

        return product1;
    }
}




